|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.text.source.TagHandlerFactory
Default implementation of a tag handler factory
Constructor Summary | |
TagHandlerFactory()
|
Method Summary | |
void |
addTagHandler(String tag,
ITagHandler handler)
|
ITagHandler |
findHandler(String text)
Finds and returns a handler that can handle the given text snippet. |
ITagHandler |
getHandler(String tag)
Returns a handler that can handle the given tag. |
ITagHandler |
registerHandler(String tag)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TagHandlerFactory()
Method Detail |
public void addTagHandler(String tag, ITagHandler handler)
public ITagHandler registerHandler(String tag)
public ITagHandler getHandler(String tag)
ITagHandlerFactory
Depending on the used handler the factory might return a new or a shared instance.
getHandler
in interface ITagHandlerFactory
tag
- the tag for which to return the handler
null
if no handler
is availablepublic ITagHandler findHandler(String text)
ITagHandlerFactory
Depending on the used handler the factory might return a new or a shared instance.
findHandler
in interface ITagHandlerFactory
text
- the text for which to find a handler
null
if no handler
is available
|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |